package api

import (
	"Gin/api/handler"
	"Gin/api/middlewere"
	"github.com/gin-gonic/gin"
)

func Run(r *gin.Engine) {
	r.POST("/user/login", handler.UserLogin)
	login := r.Group("")
	login.Use(middlewere.LoginMiddlewere())
	login.POST("/video/push", handler.VideoPush)
	vip := login.Group("/vip")
	vip.Use(middlewere.VipMiddlewere())
	vip.POST("/video/get", handler.VideoGet)
}
